<!--
 * @Description: 
 * @Author: ljl
 * @Date: 2024-11-12 19:48:50
 * @LastEditors: rendc
 * @LastEditTime: 2024-11-12 19:48:50
-->
<template>
    <div>
        <div v-html="htmlContent"></div>
    </div>
</template>

<script>
import { ref } from 'vue';
export default{
    setup(){
        const htmlContent = ref('<p style="color: blue;">这是一段包含html标签的内容</p>');
        return{
            htmlContent
        };
    }
};
</script>
<style>

</style>